{
	"info": {
		"_postman_id": "0206281a-6ba3-4e73-b155-46f86aa2025d",
		"name": "MiniBankIK",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "31256825"
	},
	"item": [
		{
			"name": "GetHealth",
			"event": [
				{
					"listen": "test",
					"script": {
						"exec": [
							"pm.test(\"Status code is 200\", function () {",
							"    pm.response.to.have.status(200);",
							"});"
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "localhost:8000/health",
					"host": [
						"localhost"
					],
					"port": "8000",
					"path": [
						"health"
					]
				}
			},
			"response": []
		},
		{
			"name": "ProcessData",
			"event": [
				{
					"listen": "test",
					"script": {
						"exec": [
							"pm.test(\"Status code is 200\", function () {",
							"    pm.response.to.have.status(200);",
							"});"
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"auth": {
					"type": "noauth"
				},
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"name\": \"Jeff\", \n    \"surname\": \"Mitchel\",\n    \"email\": \"jm66@ba56nk.com\",\n    \"passport\": \"t45027854\",\n    \"phone\": \"p9267774385\"\n}\n",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "localhost:8000/process_data",
					"host": [
						"localhost"
					],
					"port": "8000",
					"path": [
						"process_data"
					]
				}
			},
			"response": []
		},
		{
			"name": "Sign Up",
			"event": [
				{
					"listen": "test",
					"script": {
						"exec": [
							"pm.test(\"Status code is 200\", function () {",
							"    pm.response.to.have.status(200);",
							"});"
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"name\": \"Jeff34ry\", \n    \"surname\": \"Mit2chel1445\",\n    \"email\": \"jm1234@bank.com\",\n    \"passport\": \"t652278549\",\n    \"phone\": \"p9367775762\",\n    \"pwd\": \"secretpwd\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "localhost:8000/customer/sign-up",
					"host": [
						"localhost"
					],
					"port": "8000",
					"path": [
						"customer",
						"sign-up"
					]
				}
			},
			"response": []
		},
		{
			"name": "Customer Update",
			"event": [
				{
					"listen": "test",
					"script": {
						"exec": [
							"pm.test(\"Status code is 200\", function () {",
							"    pm.response.to.have.status(200);",
							"});"
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJqbTEyMzRAYmFuay5jb20iLCJwaG9uZSI6InA5MzY3Nzc1NzY5IiwiY3VzdGlkIjoiYTE5OTYwNDQtZTAzMi00MjgwLWI1YmItMzA3NWMxOWRiYmRjIiwiZXhwIjoxNzEwNzEzODE0fQ.U1tHbXK3vGMFMph-gGZXRInTJ_jnXSl8Hv4JMPgEgWc",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"id\": \"6cc0c332-6d28-48e4-b19c-63cd98c5d3d6\",\n    \"name\": \"Jeff3upd12\", \n    \"surname\": \"Mitch4el1upd\",\n    \"email\": \"jm12u@ban4k.com\",\n    \"passport\": \"t451008544\",\n    \"phone\": \"p9277775438\",\n    \"pwd\": \"secretpwd\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "localhost:8000/customer/update",
					"host": [
						"localhost"
					],
					"port": "8000",
					"path": [
						"customer",
						"update"
					]
				}
			},
			"response": []
		},
		{
			"name": "Customer Delete",
			"event": [
				{
					"listen": "test",
					"script": {
						"exec": [
							"pm.test(\"Status code is 200\", function () {",
							"    pm.response.to.have.status(200);",
							"});"
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJqbTEyMzRAYmFuay5jb20iLCJwaG9uZSI6InA5MzY3Nzc1NzY5IiwiY3VzdGlkIjoiYTE5OTYwNDQtZTAzMi00MjgwLWI1YmItMzA3NWMxOWRiYmRjIiwiZXhwIjoxNzEwNzEzODE0fQ.U1tHbXK3vGMFMph-gGZXRInTJ_jnXSl8Hv4JMPgEgWc",
							"type": "string"
						}
					]
				},
				"method": "DELETE",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"id\": \"6cc0c332-6d28-48e4-b19c-63cd98c5d3d6\",\n    \"pwd\": \"secretpwd\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "localhost:8000/customer/update",
					"host": [
						"localhost"
					],
					"port": "8000",
					"path": [
						"customer",
						"update"
					]
				}
			},
			"response": []
		},
		{
			"name": "Customer Login",
			"protocolProfileBehavior": {
				"disableBodyPruning": true
			},
			"request": {
				"method": "GET",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"phone\": \"p9367775761\",\n    \"pwd\": \"secretpwd\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "localhost:8000/customer/login",
					"host": [
						"localhost"
					],
					"port": "8000",
					"path": [
						"customer",
						"login"
					]
				}
			},
			"response": []
		},
		{
			"name": "Customer Check",
			"event": [
				{
					"listen": "test",
					"script": {
						"exec": [
							"pm.test(\"Status code is 200\", function () {",
							"    pm.response.to.have.status(200);",
							"});",
							""
						],
						"type": "text/javascript"
					}
				}
			],
			"protocolProfileBehavior": {
				"disableBodyPruning": true
			},
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJqbTEyM0BiYW5rLmNvbSIsInBob25lIjoicDkzNjc3NzU1NjgiLCJjdXN0aWQiOiJkYzM1M2ZlNC00ZTgyLTQ1Y2EtYmYxZC05MGM0NzFiODUxODciLCJleHAiOjE3MTAwMzEwMzB9.1Sy2g_S5wlnZPeBiniiKRd--F1LvXpBzUlpt3bLMUAk",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"id\": \"dc353fe4-4e82-45ca-bf1d-90c471b85187\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "localhost:8000/customer/check",
					"host": [
						"localhost"
					],
					"port": "8000",
					"path": [
						"customer",
						"check"
					]
				}
			},
			"response": []
		},
		{
			"name": "Get Token",
			"event": [
				{
					"listen": "test",
					"script": {
						"exec": [
							"pm.test(\"Status code is 200\", function () {",
							"    pm.response.to.have.status(200);",
							"});"
						],
						"type": "text/javascript"
					}
				}
			],
			"request": {
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"phone\": \"p9367775568\",\n    \"pwd\": \"secretpwd\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "localhost:8000/token",
					"host": [
						"localhost"
					],
					"port": "8000",
					"path": [
						"token"
					]
				}
			},
			"response": []
		},
		{
			"name": "Check Token Usage",
			"protocolProfileBehavior": {
				"disableBodyPruning": true
			},
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJqbTF1QGJhbjRrLmNvbSIsInBob25lIjoicDkyNjc3NzU0MzgiLCJleHAiOjE3MDk1OTkzNzF9.tnKSdhNxCOYuAQbyQV7mUbxMKyp5G4eCpYWPoEm05XY",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "localhost:8000/protected",
					"host": [
						"localhost"
					],
					"port": "8000",
					"path": [
						"protected"
					]
				}
			},
			"response": []
		},
		{
			"name": "Get API Specification",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "localhost:8000/openapi.json",
					"host": [
						"localhost"
					],
					"port": "8000",
					"path": [
						"openapi.json"
					]
				}
			},
			"response": []
		},
		{
			"name": "Accounts Health check",
			"request": {
				"method": "GET",
				"header": [],
				"url": {
					"raw": "localhost:8080/accounts/health",
					"host": [
						"localhost"
					],
					"port": "8080",
					"path": [
						"accounts",
						"health"
					]
				}
			},
			"response": []
		},
		{
			"name": "Account Create",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJqbTEyMzRAYmFuay5jb20iLCJwaG9uZSI6InA5MzY3Nzc1NzYyIiwiY3VzdGlkIjoiMTY4NjY5NTYtMmMzMi00NTU3LWI5YTYtZjhhYzA2ODQ4ZTE1IiwiZXhwIjoxNzEwNzE5MTk3fQ.slYl9OgL9A-lNKP9Le8UH6dKns-L2_ZYJyIxKFKJRyI",
							"type": "string"
						}
					]
				},
				"method": "POST",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"cust_id\": \"16866956-2c32-4557-b9a6-f8ac06848e15\",\n    \"currency\": \"RUR\", \n    \"amount\": \"10051\",\n    \"interest_rate\": \"11\",\n    \"duration_months\": \"12\",\n    \"description\": \"my test account 2\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "localhost:8080/accounts/account",
					"host": [
						"localhost"
					],
					"port": "8080",
					"path": [
						"accounts",
						"account"
					]
				}
			},
			"response": []
		},
		{
			"name": "Account update",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJqbTEyMzRAYmFuay5jb20iLCJwaG9uZSI6InA5MzY3Nzc1NzY5IiwiY3VzdGlkIjoiYWQxZDlkMDItMWFlMy00NDcwLWJhOTAtMWQ2MjEyYTEzNDBjIiwiZXhwIjoxNzEwMzgwNDYwfQ.0P2f2sAs5J1uHk2CWjVs-wtFFHRcbiCzSyz8H0Bmkdk",
							"type": "string"
						}
					]
				},
				"method": "PATCH",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"id\": \"18bb01da-a2fa-4036-a970-5dc415a30462\",\n    \"cust_id\": \"ad1d9d02-1ae3-4470-ba90-1d6212a1340c\",\n    \"currency\": \"RUR\",\n    \"top_up_amnt\": 11100,\n    \"withdraw_amnt\": 0\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "localhost:8080/accounts/account",
					"host": [
						"localhost"
					],
					"port": "8080",
					"path": [
						"accounts",
						"account"
					]
				}
			},
			"response": []
		},
		{
			"name": "Account Delete",
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJqbTEyMzRAYmFuay5jb20iLCJwaG9uZSI6InA5MzY3Nzc1NzY5IiwiY3VzdGlkIjoiYWQxZDlkMDItMWFlMy00NDcwLWJhOTAtMWQ2MjEyYTEzNDBjIiwiZXhwIjoxNzEwMzgwNDYwfQ.0P2f2sAs5J1uHk2CWjVs-wtFFHRcbiCzSyz8H0Bmkdk",
							"type": "string"
						}
					]
				},
				"method": "DELETE",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"id\":\"18bb01da-a2fa-4036-a970-5dc415a30462\",\n    \"cust_id\":\"ad1d9d02-1ae3-4470-ba90-1d6212a1340c\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "localhost:8080/accounts/account",
					"host": [
						"localhost"
					],
					"port": "8080",
					"path": [
						"accounts",
						"account"
					]
				}
			},
			"response": []
		},
		{
			"name": "Get Accounts List",
			"protocolProfileBehavior": {
				"disableBodyPruning": true
			},
			"request": {
				"auth": {
					"type": "bearer",
					"bearer": [
						{
							"key": "token",
							"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJqbTEyMzRAYmFuay5jb20iLCJwaG9uZSI6InA5MzY3Nzc1NzYyIiwiY3VzdGlkIjoiMTY4NjY5NTYtMmMzMi00NTU3LWI5YTYtZjhhYzA2ODQ4ZTE1IiwiZXhwIjoxNzEwNzE5MTk3fQ.slYl9OgL9A-lNKP9Le8UH6dKns-L2_ZYJyIxKFKJRyI",
							"type": "string"
						}
					]
				},
				"method": "GET",
				"header": [],
				"body": {
					"mode": "raw",
					"raw": "{\n    \"cust_id\": \"16866956-2c32-4557-b9a6-f8ac06848e15\"\n}",
					"options": {
						"raw": {
							"language": "json"
						}
					}
				},
				"url": {
					"raw": "localhost:8080/accounts",
					"host": [
						"localhost"
					],
					"port": "8080",
					"path": [
						"accounts"
					]
				}
			},
			"response": []
		}
	]
}